<?php
error_reporting(E_ALL^ E_NOTICE);
ini_set('display_errors','On');
$username="ima";
$password= "ima2006";

$ch = curl_init("http://www.mathinstitutes.org/math-videos/metadata/v1/asset/catalog"); 
$options = array(
  CURLOPT_RETURNTRANSFER => true,
	CURLOPT_HEADER => false,  //true or false to show the header in the result 
 CURLOPT_USERPWD=>"$username:$password");

// Setting curl options
curl_setopt_array( $ch, $options ); 
$result = curl_exec($ch);
$obj=json_decode($result);
curl_close($ch);
echo $result;
print_r($obj);
/******************end*****************/
//db_close($conn);
?>